<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>person</title>
	</head>
	<body>
		<script type="text/javascript">
			function person(nation,skinColor){
				this.nation="汉族";
				this.skinColor="黄色";
			}
			person.prototype.getNation=function(){
				return this.nation;
			}
			person.prototype.getSkinColor=function(){
				return this.skinColor;
			}
			function woman(sex){
				this.sex="女";
			}
		
			woman.prototype=new person();
			woman.prototype.getSex1=function(){
				return this.sex;
			}
			var woman1=new woman();
			alert(woman1.getNation()+"\n"+woman1.getSkinColor()+"\n"+woman1.getSex1());
		</script>
	</body>
</html>
